# -*- coding: utf-8 -*-
# @Project : getLog.py
# @File    : 实验代码.py
# @Author  : 朱宽
# @Time    : 2021/9/10 17:15
# @Software: Win10 / Python3 / Pycharm
from configparser import ConfigParser
from config.globalConfig import page_element_folder_path

path=page_element_folder_path+'page_element_locating_information.ini'

test=ConfigParser()
test.read(filenames=path,encoding='utf-8')

options=test.items('main_baidu')
print('options：',options,type(options),type(options[0]))

x=test.options('main_baidu')
print(x)
x=test.get(section='main_baidu',option='input_search')
print(x)

x=test.add_section(section='aaaa')
test.remove_option(section='main_baidu',option='input_search')
print(test.sections(),test.options(section='main_baidu'))

a='1>2>333#ff'
print(a.split('>'))
q={
    'value':'我们是共产主义接班人'
}

a='7e81050001013966668888000004b97e'
print(len(a))

